package mvp.com.bbc.rcjavaretrofitdaggermvp.mvp.activity;

import mvp.com.bbc.rcjavaretrofitdaggermvp.app.utils.GalleryPopUpWindow;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.utils.Util;
import mvp.com.bbc.rcjavaretrofitdaggermvp.baseAF.BaseViewPagerActivity;
import mvp.com.bbc.viewpagerlayoutmanager.GalleryLayoutManager;

/**
 * Created by ${cbf} on 2017/11/30.
 * viewpager渐变式的滑动
 */

public class GalleryLayoutActivity extends BaseViewPagerActivity<GalleryLayoutManager, GalleryPopUpWindow> {
    @Override
    protected GalleryLayoutManager createLayoutManager() {
        return new GalleryLayoutManager(Util.Dp2px(this, 10));
    }

    @Override
    protected GalleryPopUpWindow createSettingPopUpWindow() {
        return new GalleryPopUpWindow(this, getViewPagerLayoutManager(), getRecyclerView());
    }
}
